package com.jims.master.modules.sync.entity; /**
 * jims
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 转诊记录Entity
 * @author ct
 * @version 2017-12-14
 */
public class TransferRecord extends DataEntity<TransferRecord> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private String sex;		// 性别
	private String age;		// 年龄
	private String identity;		// 身份
	private String chargeType;		// 费别
	private String baseInfo;
	private String doctorId;
	private String idNo;		// 身份证号
	private String phone;		// 电话
	private String outClinic;		// 转出门诊
	private String intoDept;		// 转入科室
	private String intoOrg;		// 转入机构
	private String cause;		// 转诊原因
	private String firstPhenomenon;		// 初步现象
	private String xianbingshi;		// 主要现病史
	private String jiwangshi;		// 主要既往史
	private String treatmentProcess;		// 治疗经过
	private String proposal;		// 建议/意见
	private String situationType;		// 病情状态
	private Date receiveDate;		// 接诊时间
	private String receiveDoctor;		// 接诊医生
	private String doctorPhone;		// 接诊医生电话
	private String receiveDept;		// 接诊科室
	private String receiveOrg;		// 接诊机构
	private String receiveClinic;		// 接诊门诊
	private String orgId;		// 机构ID
	private String dept;    //转入科室
	private String personNum;  //转入人数
	private String orgName;
	private String clinicNo;

	public String getClinicNo() {
		return clinicNo;
	}

	public void setClinicNo(String clinicNo) {
		this.clinicNo = clinicNo;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}

	public String getBaseInfo() {
		return baseInfo;
	}

	public void setBaseInfo(String baseInfo) {
		this.baseInfo = baseInfo;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getPersonNum() {
		return personNum;
	}

	public void setPersonNum(String personNum) {
		this.personNum = personNum;
	}

	public TransferRecord() {
		super();
	}

	public TransferRecord(String id){
		super(id);
	}

	@Length(min=0, max=200, message="姓名长度必须介于 0 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=0, max=11, message="年龄长度必须介于 0 和 11 之间")
	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
	
	@Length(min=0, max=2, message="身份长度必须介于 0 和 2 之间")
	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}
	
	@Length(min=0, max=2, message="费别长度必须介于 0 和 2 之间")
	public String getChargeType() {
		return chargeType;
	}

	public void setChargeType(String chargeType) {
		this.chargeType = chargeType;
	}
	
	@Length(min=0, max=21, message="身份证号长度必须介于 0 和 21 之间")
	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}
	
	@Length(min=0, max=20, message="电话长度必须介于 0 和 20 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=1, max=64, message="转出门诊长度必须介于 1 和 64 之间")
	public String getOutClinic() {
		return outClinic;
	}

	public void setOutClinic(String outClinic) {
		this.outClinic = outClinic;
	}
	
	@Length(min=1, max=64, message="转入科室长度必须介于 1 和 64 之间")
	public String getIntoDept() {
		return intoDept;
	}

	public void setIntoDept(String intoDept) {
		this.intoDept = intoDept;
	}
	
	@Length(min=1, max=64, message="转入机构长度必须介于 1 和 64 之间")
	public String getIntoOrg() {
		return intoOrg;
	}

	public void setIntoOrg(String intoOrg) {
		this.intoOrg = intoOrg;
	}
	
	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause = cause;
	}
	
	public String getFirstPhenomenon() {
		return firstPhenomenon;
	}

	public void setFirstPhenomenon(String firstPhenomenon) {
		this.firstPhenomenon = firstPhenomenon;
	}
	
	public String getXianbingshi() {
		return xianbingshi;
	}

	public void setXianbingshi(String xianbingshi) {
		this.xianbingshi = xianbingshi;
	}
	
	public String getJiwangshi() {
		return jiwangshi;
	}

	public void setJiwangshi(String jiwangshi) {
		this.jiwangshi = jiwangshi;
	}
	
	public String getTreatmentProcess() {
		return treatmentProcess;
	}

	public void setTreatmentProcess(String treatmentProcess) {
		this.treatmentProcess = treatmentProcess;
	}
	
	public String getProposal() {
		return proposal;
	}

	public void setProposal(String proposal) {
		this.proposal = proposal;
	}
	
	@Length(min=0, max=1, message="病情状态长度必须介于 0 和 1 之间")
	public String getSituationType() {
		return situationType;
	}

	public void setSituationType(String situationType) {
		this.situationType = situationType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(Date receiveDate) {
		this.receiveDate = receiveDate;
	}
	
	@Length(min=0, max=64, message="接诊医生长度必须介于 0 和 64 之间")
	public String getReceiveDoctor() {
		return receiveDoctor;
	}

	public void setReceiveDoctor(String receiveDoctor) {
		this.receiveDoctor = receiveDoctor;
	}
	
	@Length(min=0, max=20, message="接诊医生电话长度必须介于 0 和 20 之间")
	public String getDoctorPhone() {
		return doctorPhone;
	}

	public void setDoctorPhone(String doctorPhone) {
		this.doctorPhone = doctorPhone;
	}
	
	@Length(min=0, max=64, message="接诊科室长度必须介于 0 和 64 之间")
	public String getReceiveDept() {
		return receiveDept;
	}

	public void setReceiveDept(String receiveDept) {
		this.receiveDept = receiveDept;
	}
	
	@Length(min=0, max=64, message="接诊机构长度必须介于 0 和 64 之间")
	public String getReceiveOrg() {
		return receiveOrg;
	}

	public void setReceiveOrg(String receiveOrg) {
		this.receiveOrg = receiveOrg;
	}
	
	@Length(min=0, max=64, message="接诊门诊长度必须介于 0 和 64 之间")
	public String getReceiveClinic() {
		return receiveClinic;
	}

	public void setReceiveClinic(String receiveClinic) {
		this.receiveClinic = receiveClinic;
	}
	
	@Length(min=1, max=64, message="机构ID长度必须介于 1 和 64 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
}